\hypertarget{class_state_manager}{\section{State\-Manager Class Reference}
\label{class_state_manager}\index{State\-Manager@{State\-Manager}}
}


{\ttfamily \#include $<$State\-Manager.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_state_manager_a3671a7c516e46d8e85048fc7808ce3ad}{State\-Manager} (void)
\item 
\hyperlink{class_state_manager_a7c8cc451501d7883ffc28b60d7f4c559}{$\sim$\-State\-Manager} (void)
\item 
\hyperlink{class_state_machine}{State\-Machine} $\ast$ \hyperlink{class_state_manager_ae7672f878bc520a29723feac8dc19131}{initialise\-State} ()
\item 
void \hyperlink{class_state_manager_abab37054bb4884e50618d4befa12eaf3}{change\-Places\-Been} (long code, \hyperlink{class_state_machine}{State\-Machine} $\ast$machine)
\item 
\hyperlink{class_state_machine}{State\-Machine} $\ast$ \hyperlink{class_state_manager_a901fef986fdd19cccbef719c929ba89f}{get\-State\-Value} (long code)
\item 
\hyperlink{class_state_machine}{State\-Machine} $\ast$ \hyperlink{class_state_manager_ada4df5f0156c3f811fc2fb4fb4991d8f}{call\-States} (long code, long oldcode, \hyperlink{class_state_machine}{State\-Machine} $\ast$oldmachine)
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_key_code}{Key\-Code} $\ast$ \hyperlink{class_state_manager_a39d1a1ef04855e4c6d4d883345d820fa}{codes}
\item 
std\-::map$<$ long, \hyperlink{class_state_machine}{State\-Machine} $\ast$ $>$ \hyperlink{class_state_manager_adb63b5c570c88ecc53dcaa60bc917a31}{placesbeen}
\item 
long \hyperlink{class_state_manager_a4223790502653f0c4f788492657e2efe}{currentcode}
\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 15 of file State\-Manager.\-h.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_state_manager_a3671a7c516e46d8e85048fc7808ce3ad}{\index{State\-Manager@{State\-Manager}!State\-Manager@{State\-Manager}}
\index{State\-Manager@{State\-Manager}!StateManager@{State\-Manager}}
\subsubsection[{State\-Manager}]{\setlength{\rightskip}{0pt plus 5cm}State\-Manager\-::\-State\-Manager (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{class_state_manager_a3671a7c516e46d8e85048fc7808ce3ad}


Definition at line 11 of file State\-Manager.\-cpp.



References codes, and currentcode.

\hypertarget{class_state_manager_a7c8cc451501d7883ffc28b60d7f4c559}{\index{State\-Manager@{State\-Manager}!$\sim$\-State\-Manager@{$\sim$\-State\-Manager}}
\index{$\sim$\-State\-Manager@{$\sim$\-State\-Manager}!StateManager@{State\-Manager}}
\subsubsection[{$\sim$\-State\-Manager}]{\setlength{\rightskip}{0pt plus 5cm}State\-Manager\-::$\sim$\-State\-Manager (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{class_state_manager_a7c8cc451501d7883ffc28b60d7f4c559}


Definition at line 18 of file State\-Manager.\-cpp.



\subsection{Member Function Documentation}
\hypertarget{class_state_manager_ada4df5f0156c3f811fc2fb4fb4991d8f}{\index{State\-Manager@{State\-Manager}!call\-States@{call\-States}}
\index{call\-States@{call\-States}!StateManager@{State\-Manager}}
\subsubsection[{call\-States}]{\setlength{\rightskip}{0pt plus 5cm}{\bf State\-Machine} $\ast$ State\-Manager\-::call\-States (
\begin{DoxyParamCaption}
\item[{long}]{code, }
\item[{long}]{oldcode, }
\item[{{\bf State\-Machine} $\ast$}]{oldmachine}
\end{DoxyParamCaption}
)}}\label{class_state_manager_ada4df5f0156c3f811fc2fb4fb4991d8f}


Definition at line 35 of file State\-Manager.\-cpp.



References change\-Places\-Been(), codes, currentcode, Key\-Code\-::get\-Hash\-Map(), Key\-Code\-::get\-Special(), placesbeen, and State\-Machine\-::re\-Init().



Referenced by Main\-Frame\-::update(), and Gameloop\-::update().

\hypertarget{class_state_manager_abab37054bb4884e50618d4befa12eaf3}{\index{State\-Manager@{State\-Manager}!change\-Places\-Been@{change\-Places\-Been}}
\index{change\-Places\-Been@{change\-Places\-Been}!StateManager@{State\-Manager}}
\subsubsection[{change\-Places\-Been}]{\setlength{\rightskip}{0pt plus 5cm}void State\-Manager\-::change\-Places\-Been (
\begin{DoxyParamCaption}
\item[{long}]{code, }
\item[{{\bf State\-Machine} $\ast$}]{machine}
\end{DoxyParamCaption}
)}}\label{class_state_manager_abab37054bb4884e50618d4befa12eaf3}


Definition at line 27 of file State\-Manager.\-cpp.



References placesbeen.



Referenced by call\-States().

\hypertarget{class_state_manager_a901fef986fdd19cccbef719c929ba89f}{\index{State\-Manager@{State\-Manager}!get\-State\-Value@{get\-State\-Value}}
\index{get\-State\-Value@{get\-State\-Value}!StateManager@{State\-Manager}}
\subsubsection[{get\-State\-Value}]{\setlength{\rightskip}{0pt plus 5cm}{\bf State\-Machine} $\ast$ State\-Manager\-::get\-State\-Value (
\begin{DoxyParamCaption}
\item[{long}]{code}
\end{DoxyParamCaption}
)}}\label{class_state_manager_a901fef986fdd19cccbef719c929ba89f}


Definition at line 31 of file State\-Manager.\-cpp.



References placesbeen.

\hypertarget{class_state_manager_ae7672f878bc520a29723feac8dc19131}{\index{State\-Manager@{State\-Manager}!initialise\-State@{initialise\-State}}
\index{initialise\-State@{initialise\-State}!StateManager@{State\-Manager}}
\subsubsection[{initialise\-State}]{\setlength{\rightskip}{0pt plus 5cm}{\bf State\-Machine} $\ast$ State\-Manager\-::initialise\-State (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_state_manager_ae7672f878bc520a29723feac8dc19131}


Definition at line 22 of file State\-Manager.\-cpp.



References codes, and Key\-Code\-::get\-Hash\-Map().



Referenced by Gameloop\-::\-Gameloop(), and Main\-Frame\-::init().



\subsection{Member Data Documentation}
\hypertarget{class_state_manager_a39d1a1ef04855e4c6d4d883345d820fa}{\index{State\-Manager@{State\-Manager}!codes@{codes}}
\index{codes@{codes}!StateManager@{State\-Manager}}
\subsubsection[{codes}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Key\-Code}$\ast$ State\-Manager\-::codes\hspace{0.3cm}{\ttfamily [private]}}}\label{class_state_manager_a39d1a1ef04855e4c6d4d883345d820fa}


Definition at line 26 of file State\-Manager.\-h.



Referenced by call\-States(), initialise\-State(), and State\-Manager().

\hypertarget{class_state_manager_a4223790502653f0c4f788492657e2efe}{\index{State\-Manager@{State\-Manager}!currentcode@{currentcode}}
\index{currentcode@{currentcode}!StateManager@{State\-Manager}}
\subsubsection[{currentcode}]{\setlength{\rightskip}{0pt plus 5cm}long State\-Manager\-::currentcode\hspace{0.3cm}{\ttfamily [private]}}}\label{class_state_manager_a4223790502653f0c4f788492657e2efe}


Definition at line 29 of file State\-Manager.\-h.



Referenced by call\-States(), and State\-Manager().

\hypertarget{class_state_manager_adb63b5c570c88ecc53dcaa60bc917a31}{\index{State\-Manager@{State\-Manager}!placesbeen@{placesbeen}}
\index{placesbeen@{placesbeen}!StateManager@{State\-Manager}}
\subsubsection[{placesbeen}]{\setlength{\rightskip}{0pt plus 5cm}std\-::map$<$long, {\bf State\-Machine}$\ast$$>$ State\-Manager\-::placesbeen\hspace{0.3cm}{\ttfamily [private]}}}\label{class_state_manager_adb63b5c570c88ecc53dcaa60bc917a31}


Definition at line 27 of file State\-Manager.\-h.



Referenced by call\-States(), change\-Places\-Been(), and get\-State\-Value().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
C\-:/\-Users/\-Axel/\-Desktop/informatica/\-Projects/\-Workspace C++/\-Game Engine/src/\-State\-Management/\hyperlink{_state_manager_8h}{State\-Manager.\-h}\item 
C\-:/\-Users/\-Axel/\-Desktop/informatica/\-Projects/\-Workspace C++/\-Game Engine/src/\-State\-Management/\hyperlink{_state_manager_8cpp}{State\-Manager.\-cpp}\end{DoxyCompactItemize}
